<?php
// 应用公共文件
define('URL','http://192.168.8.61/');
define('URL_AVATAR',URL . 'upload/images/avatar/');
define('URL_CIRCLE',URL . 'upload/images/circle');

function output_data($date)
{
    header('Content-Type: application/json; charset=UTF-8');
    $newData = array();
    $newData['code'] = 1;
    $newData['msg'] = 'success';
    $newData['data'] = $date;
    echo json_encode($newData);
    die();
}
function output_error($msg)
{
    header('Content-Type: application/json; charset=UTF-8');
    $newData = array();
    $newData['code'] = 2;
    $newData['msg'] = $msg;
    $newData['data'] = '';
    echo json_encode($newData);
    die();
}

function output_error($msg)
{
    header('Content-Type: application/json; charset=UTF-8');
    $newData = array();
    $newData['code'] = 0;
    $newData['msg'] = '';
    $newData['count'] = $count;
    $newData['data'] = $data;
    echo json_encode($newData);
    die();
}
function get_ip_address($ip)
{
$url = 'http://whois.pconli'
}